﻿<UserControl x:Class="MDrive.Views.PhysicsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:Views="clr-namespace:MDrive.Views"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UniformGrid>
        <Views:FieldView
            Label="Pully Diameter (mm)"
            Value="{Binding PullyDiameterMm, Mode=TwoWay}" />
        <Views:FieldView
            Label="Total Distance (m)"
            Value="{Binding TotalDistanceM, Mode=TwoWay}" />
        <Image Source="/MDrive;component/nnt.bmp" Margin="5"/>
        <Views:FieldView
            Label="Acceleration (m/s/s)"
            Value="{Binding AccelerationMss, Mode=TwoWay}" />
        <Views:FieldView
            Label="Maximim Velocity(m/s)"
            Value="{Binding MaximumVelocityMs, Mode=TwoWay}" />
        <Views:FieldView
            Label="Deceleration (m/s/s)"
            Value="{Binding DecelerationMss, Mode=TwoWay}" />
        <Button Command="{Binding Start}" Margin="5" FontSize="40" Background="Green" Foreground="White">Go</Button>
        <Button Command="{Binding Return}" Margin="5" FontSize="40" Background="Blue" Foreground="White">Return</Button>
        <Button Command="{Binding Stop}" Margin="5" FontSize="40" Background="Red" Foreground="White">Stop</Button>
    </UniformGrid>
</UserControl>
